//
//  StoryView.m
//  PetTown
//
//  Created by lanou3g on 15/6/2.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "StoryView.h"
#define LHeight self.frame.size.height
#define LWidth  self.frame.size.width
@implementation StoryView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
                
       
        [self setSubViews];
        
    }
    return self;
}

- (void)setSubViews{
    //新建scrollView
    self.storyScrollView  = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 100,LWidth, LHeight/2.5)];
//    _storyScrollView.pagingEnabled = YES;
    _storyScrollView.bounces = NO;
    _storyScrollView.showsHorizontalScrollIndicator = YES;
    
   // _storyScrollView.layer.superlayer
    
    _storyScrollView.backgroundColor = [UIColor whiteColor];
    
    [self addSubview:_storyScrollView];

}





/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
